<template>
  <div class="brand-wrapper">
    <div class="img-wrapper">
      <b-img :src="imgSrc" fluid-grow class="brand-logo" />
    </div>
    <p class="brand-name">{{ name }}</p>
  </div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      required: true,
    },
    imgSrc: {
      type: String,
      required: true,
    },
    width: {
      type: [Number, String],
      default: 224,
    },
    height: {
      type: [Number, String],
      default: 100,
    },
  },
};
</script>

<style lang="scss" scoped>
.brand-wrapper {
  margin-bottom: 24px;
}
.img-wrapper {
  overflow: hidden;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-name {
  margin: 0;
  text-decoration: none;
  text-rendering: optimizeLegibility;
  text-transform: none;
  font-weight: 400;
  font-style: normal;
  color: #999999;
  letter-spacing: normal;
  line-height: 24px;
  text-align: center;
  font-size: 14px;
}
.brand-logo {
  // max-width: 224px !important;
  // max-height: 100px !important;
  max-width: 180px !important;
  max-height: 80px !important;
}
</style>
